CC = gcc
CFLAGS = -g -lm -Wall -I object -I vm -I parser -I include -I cli -I compiler -W -Wstrict-prototypes -Wmissing-prototypes -Wsystem-headers
TARGET = spr
DIRS = object include cli parser vm
CFILES = $(foreach dir, %(DIRS), $(wildcard $(dir)/*.c))
OBJS = $(patsubat %.c, %.o, $(CFLAGS))
$(TARGET): $(OBJS)
	$(CC) -o $(TARGET) $(OBJS) $(CFLAGS)
